<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="issueList.title"/></title>
    <meta content="<fmt:message key='issueList.heading'/>" name="heading"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="editIssue.html"/>'"
           value="<fmt:message key="button.add"/>"/>
    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
           value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<s:set name="issues" value="issues" scope="request"/>

<display:table name="issues" class="table" requestURI="" id="issueList" export="false" pagesize="25">
    <display:column property="id" sortable="true" href="editIssue.html"
                    paramId="id" paramProperty="id" titleKey="issue.id"/>
    <display:column property="project" sortable="true" titleKey="issue.project"/>
    <display:column property="description" sortable="false" titleKey="issue.description"/>

    <display:setProperty name="paging.banner.item_name" value="issue"/>
    <display:setProperty name="paging.banner.items_name" value="issues"/>

</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("issueList");
</script>